
package model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Team-2
 */
@Entity
@Table(name = "TRANSACTION_CUSTOMER")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "TransactionCustomer.findAll", query = "SELECT t FROM TransactionCustomer t"),
    @NamedQuery(name = "TransactionCustomer.findByBarcode", query = "SELECT t FROM TransactionCustomer t WHERE t.barcode = :barcode"),
    @NamedQuery(name = "TransactionCustomer.findByRegNumber", query = "SELECT t FROM TransactionCustomer t WHERE t.regNumber = :regNumber"),
    @NamedQuery(name = "TransactionCustomer.findByDescription", query = "SELECT t FROM TransactionCustomer t WHERE t.description = :description"),
    @NamedQuery(name = "TransactionCustomer.findByKatohos", query = "SELECT t FROM TransactionCustomer t WHERE t.katohos = :katohos"),
    @NamedQuery(name = "TransactionCustomer.findByPassTimestamp", query = "SELECT t FROM TransactionCustomer t WHERE t.passTimestamp = :passTimestamp"),
    @NamedQuery(name = "TransactionCustomer.findByStationId", query = "SELECT t FROM TransactionCustomer t WHERE t.stationId = :stationId")})

public class TransactionCustomer implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "BARCODE")
    @Id
    private Integer barcode;
    @Column(name = "REG_NUMBER")
    private String regNumber;
    @Column(name = "DESCRIPTION")
    private String description;
    @Column(name = "KATOHOS")
    private String katohos;
    @Basic(optional = false)
    @Column(name = "PASS_TIMESTAMP")
    @Temporal(TemporalType.DATE)
    private Date passTimestamp;
    @Column(name = "STATION_ID")
    private Integer stationId;

    public TransactionCustomer() {
    }

    public Integer getBarcode() {
        return barcode;
    }

    public void setBarcode(Integer barcode) {
        this.barcode = barcode;
    }

    public String getRegNumber() {
        return regNumber;
    }

    public void setRegNumber(String regNumber) {
        this.regNumber = regNumber;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getKatohos() {
        return katohos;
    }

    public void setKatohos(String katohos) {
        this.katohos = katohos;
    }

    public Date getPassTimestamp() {
        return passTimestamp;
    }

    public void setPassTimestamp(Date passTimestamp) {
        this.passTimestamp = passTimestamp;
    }

    public Integer getStationId() {
        return stationId;
    }

    public void setStationId(Integer stationId) {
        this.stationId = stationId;
    }
    
}
